package com.joysuch.wwyt.bp.bean;

import cn.zlg.common.springmvc.validate.constraints.NotNull;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel(value = "应急人员")
public class BpEmergencyPeopleBean implements Serializable {

    @ApiModelProperty("主键id")
    private Long id;

    @ApiModelProperty("应急人员id")
//    @NotNull(field = "应急人员id", message = "应急人员id不能为空")
    private Long userId;
    private String userName;

    @ApiModelProperty("应急人员工号")
    private String userCode;

    @ApiModelProperty("身份id")
    private Long roleId;
    private String roleName;

    @ApiModelProperty("部门id")
    private Long departId;
    private String departName;

    @ApiModelProperty("岗位id")
    private Long jobId;
    private String jobName;

    @ApiModelProperty("电话号码")
    private String phoneNumber;

    @ApiModelProperty("应急人员类别-数据字典id")
    private Long peopleTypeId;
    @ApiModelProperty("应急人员类别名称")
    private String peopleTypeName;

    @ApiModelProperty("应急职务-数据字典id")
    private Long positionId;
    @ApiModelProperty("应急职务名称")
    private String positionName;

    @ApiModelProperty("是否接受过安全培训:是,否")
    private String safetyTraining;

    @Data
    public static class SearchPlanBean implements Serializable {

        @ApiModelProperty(value = "分页查询:编码或者名称")
        private String nameOrCode;

    }
}
